public class Test {

    private String s()<caret>

    @Deprecated private String foo;
}